package com.etc.dao;

import com.etc.model.User_class;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface User_classMapper {
    int deleteById(Integer id);

    int insert(User_class record);

    int insertSelective(User_class record);

    User_class findById(Integer id);

    int updateByPrimaryKeySelective(User_class record);

    int updateByPrimaryKey(User_class record);

    List<User_class> findByUsername(@Param("username") String username);


    User_class findFirstByClassnode(@Param("classnode") String classnode);


    User_class findFirstByClassnodeAndUsertype(@Param("classnode") String classnode
            , @Param("usertype") String usertype);


    List<User_class> findAllByClassnode(@Param("classnode") String classnode);


    List<User_class> findByClassnodeAndUsertype(@Param("classnode") String classnode
            , @Param("usertype") String usertype);


    List<User_class>findAllByUsertypeAndClassnode(@Param("usertype") String usertype
            , @Param("classnode") String classnode);


    List<User_class> findByUsertype(@Param("usertype") String usertype);


    User_class findByUsernameAndClassnode(@Param("username") String username
            , @Param("classnode") String classnode);

}